package introToJava;

import java.util.Scanner;

public class zad7 {

	public static void main(String[] args) {
		Scanner input = new Scanner (System.in);
		   System.out.print("a :");	
		int a = input.nextInt();
		   System.out.print("b :");
		int b = input.nextInt();
		   System.out.print("c :");
		int c = input.nextInt();
		   System.out.print("d: ");
		int d = input.nextInt();
		   System.out.print("e :");
		int e = input.nextInt();

		if (a>b)
		if (a>c)
	    if (a>d)
	    if (a>e)
			System.out.print(a);
	
		if (b>c)
	    if (b>a)
	    if (b>d)
	    if (b>e)
            System.out.print(b);
		if (c>b)
		if (c>a)
		if (c>d)
		if (c>e)
			System.out.print(c);
		if (d>a)
		if (d>b)	
		if (d>c)
		if (d>e){
			System.out.print(d);
		}else{
			System.out.print(e);
			}
	}
	}
